<?php
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.model' );

class ShopModelItem extends JModel
{
    
    function getItemInfo($item_id)
    {
        $db =& JFactory::getDBO();
		
		$query = "SELECT * FROM #__nix_goods WHERE id=$item_id";
		$db->setQuery($query);
		$res = $db->loadObject();
		
		return $res;
    }
}
?>